package lab01;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("请输入学生成绩：1 2 3 4 5");
        int i = s.nextInt();
        //switch语句；
        switch (i){
            case 1:
                System.out.println("不及格");
                break;
            case 2:
                System.out.println("及格");
                break;
            case 3:
                System.out.println("中等");
                break;
            case 4:
                System.out.println("良好");
                break;
            case 5:
                System.out.println("优秀");
                break;
        }
        //if 语句；
        if (i == 1) {
            System.out.println("不及格");
        } else if (i == 2) {
            System.out.println("及格");
        } else if (i == 3) {
            System.out.println("中等");
        } else if (i == 4) {
            System.out.println("良好");
        } else if (i == 5) {
            System.out.println("优秀");
        }

    }
}
